<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "me_user_drawal".
 *
 * @property integer $id
 * @property integer $userid
 * @property double $amount
 * @property integer $apply_at
 * @property integer $status
 * @property integer $audit_at
 * @property string $adminusernmae
 * @property integer $created_at
 * @property integer $updated_at
 */
class UserDrawal extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'me_user_drawal';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['userid', 'amount', 'apply_at'], 'required'],
            [['userid', 'apply_at', 'status', 'audit_at', 'created_at', 'updated_at'], 'integer'],
            [['amount'], 'number'],
            [['adminusernmae'], 'string', 'max' => 20],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '自增ID',
            'userid' => '用户ID',
            'amount' => '提现金额',
            'apply_at' => '申请时间',
            'status' => '审核状态',
            'audit_at' => '审核时间',
            'adminusernmae' => '审核账号',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }
}
